package Exercise;

import java.io.OutputStream;

/**
 * Description：
 * Author: zhangc
 * Date：2017/8/6 22:48
 */
public class TestGC {

    private static Double[] doubles = new Double[1024*1024];

    public static void main(String[] args) {
        try {
            Thread.sleep(20000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        doubles = null;
        System.gc();
        doubles = new Double[1024*1024*4];
        try {
            Thread.sleep(200000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }


}
